package milktea.service;


import milktea.dao.CATEGORYDao;
import milktea.entity.CATEGORY;

import java.util.ArrayList;

public class CATEGORYService {
    public static ArrayList<CATEGORY> selectAll() {

        return CATEGORYDao.selectAll();
    }

    public static int insert(CATEGORY cate) {
        return CATEGORYDao.insert(cate);
    }

    public static CATEGORY selectById(int id) {
        return CATEGORYDao.selectById(id);
    }

    public static int update(CATEGORY cate) {

        return CATEGORYDao.update(cate);
    }

    public static int del(int id) {
        return CATEGORYDao.del(id);
    }

    public static ArrayList<CATEGORY> selectCat(String flag) {
        return CATEGORYDao.selectCat(flag);
    }
}
